import { createRouter, createWebHashHistory } from 'vue-router'

const constantRoutes = [
  {
    path: '/',
    component: () => import('@/views/designer/index.vue'),
    name: 'designer'
  },
  {
    path: '/mobile',
    component: () => import('@/views/designer-mobile/index.vue'),
    name: 'mobile'
  }
]

export default (app) => {
  const router = createRouter({
    history: createWebHashHistory(),
    routes: constantRoutes
  })
  app.use(router)
}
